interface routerType {
  path: string;
  component?: string;
  redirect?: string;
  title?: string;
  routes?: routerType[];
}
const routes: routerType[] = [
  {
    path: '/',
    component: '@/pages/layout',
    routes: [
      { path: '/', redirect: '/home' },
      {
        component: '@/pages/home',
        path: '/home',
        title: '首页',
      },
      {
        component: '@/pages/article',
        path: '/article',
        title: '文章',
      },
      {
        component: '@/pages/about',
        path: '/about',
        title: '我的简介',
      },
      {
        component: '@/pages/mail',
        path: '/mail',
        title: '给我留言',
      },
      {
        component: '@/pages/articleinfo',
        path: '/info',
        title: '详情',
      },
      {
        component: '@/pages/login',
        path: '/login',
        title: '登录',
      },
    ],
  },
];
export default routes;
